import request from '@/utils/request'

// 查询图集标签列表
export function cancelPlanToHeadOptimize(query) {
  return request({
    url: '/gather/system/collectProductOptimizePlan/cancelPlanToHeadOptimize',
    method: 'post',
    data: query
  })
}

// 改为未优化
export function makeProductNotOptimize(query) {
  return request({
    url: '/gather/gather/collectProductOptimize/makeProductNotOptimize',
    method: 'get',
    params: query
  })
}

// 确认完成翻译
export function confirmTranslate(query) {
  return request({
    url: '/gather/gather/collectProduct/confirmTranslate',
    method: 'post',
    data: query
  })
}

// 查询在线商品检测记录列表
export function listCollectProductDiagnosisRecord(query) {
  return request({
    url: '/gather/gather/collectProductDiagnosisRecord/graphicProcessingRecordList',
    method: 'get',
    params: query
  })
}

// 确认使用白底图
export function confirmUseWhite(data) {
  return request({
    url: '/gather/gather/collectProductDiagnosisRecord/confirmUseWhite',
    method: 'get',
    params: data
  })
}


// 修改在线商品检测记录
export function chooseMainImageAsWhite(data) {
  return request({
    url: '/gather/gather/collectProductDiagnosisRecord/chooseMainImageAsWhite',
    method: 'get',
    params: data
  })
}

// 生成白底图
export function generateWhite(data) {
  return request({
    url: '/gather/gather/collectProduct/generateWhite',
    method: 'get',
    params: data
  })
}

// 生成营销图
export function generateMarketing(data) {
  return request({
    url: '/gather/gather/collectProduct/generateMarketing',
    method: 'get',
    params: data
  })
}

// 保存生成的营销图或白底图
export function saveMarketAndWhite(data) {
  return request({
    url: '/gather/gather/collectProduct/saveMarketAndWhite',
    method: 'post',
    data
  })
}

// 查询商家某个商品详情
export function queryAeProduct(data) {
  return request({
    url: '/AEProduct/queryAeProduct',
    method: 'get',
    params: data
  })
}


// 获取商品信息用于编辑
export function editProductByAeData(data) {
  return request({
    url: '/gather/gather/collectProductQualificationProgram/editProductByAeData',
    method: 'get',
    params: data
  })
}

// 编辑详情图提交
export function saveDetailsImg(data) {
  return request({
    url: '/gather/gather/collectProduct/saveDetailsImg',
    method: 'post',
    data
  })
}
